<?php

include_once ('com/alibaba/openapi/client/entity/SDKDomain.class.php');
include_once ('com/alibaba/openapi/client/entity/ByteArray.class.php');
include_once ('ProductSkuinfoGetParam/ComAlibabaOceanOpenplatformBizProductCommonModelSKUAttrInfo.class.php');

class AlibabaOceanOpenplatformBizProductCommonModelProductSimpleSkuInfo extends SDKDomain {

       	
    private $skuId;
    
        /**
    * @return 
    */
        public function getSkuId() {
        return $this->skuId;
    }
    
    /**
     * 设置     
     * @param Long $skuId     
     * 参数示例：<pre></pre>     
     * 此参数必填     */
    public function setSkuId( $skuId) {
        $this->skuId = $skuId;
    }
    
        	
    private $specId;
    
        /**
    * @return 
    */
        public function getSpecId() {
        return $this->specId;
    }
    
    /**
     * 设置     
     * @param String $specId     
     * 参数示例：<pre></pre>     
     * 此参数必填     */
    public function setSpecId( $specId) {
        $this->specId = $specId;
    }
    
        	
    private $attributes;
    
        /**
    * @return 规格属性
    */
        public function getAttributes() {
        return $this->attributes;
    }
    
    /**
     * 设置规格属性     
     * @param array include @see ComAlibabaOceanOpenplatformBizProductCommonModelSKUAttrInfo[] $attributes     
     * 参数示例：<pre>[           {             "attributeID": 3216,             "attributeValue": "白色",             "skuImageUrl": "https://cbu01.alicdn.com/img/ibank/O1CN015cPPCp2JCqMgbeoah_!!2215107369386-0-cib.jpg",             "attributeName": "颜色"           },           {             "attributeID": 450,             "attributeValue": "S",             "attributeName": "尺码"           }         ]</pre>     
     * 此参数必填     */
    public function setAttributes(ComAlibabaOceanOpenplatformBizProductCommonModelSKUAttrInfo $attributes) {
        $this->attributes = $attributes;
    }
    
    	
	private $stdResult;
	
	public function setStdResult($stdResult) {
		$this->stdResult = $stdResult;
					    			    			if (array_key_exists ( "skuId", $this->stdResult )) {
    				$this->skuId = $this->stdResult->{"skuId"};
    			}
    			    		    				    			    			if (array_key_exists ( "specId", $this->stdResult )) {
    				$this->specId = $this->stdResult->{"specId"};
    			}
    			    		    				    			    			if (array_key_exists ( "attributes", $this->stdResult )) {
    			$attributesResult=$this->stdResult->{"attributes"};
    				$object = json_decode ( json_encode ( $attributesResult ), true );
					$this->attributes = array ();
					for($i = 0; $i < count ( $object ); $i ++) {
						$arrayobject = new ArrayObject ( $object [$i] );
						$ComAlibabaOceanOpenplatformBizProductCommonModelSKUAttrInfoResult=new ComAlibabaOceanOpenplatformBizProductCommonModelSKUAttrInfo();
						$ComAlibabaOceanOpenplatformBizProductCommonModelSKUAttrInfoResult->setArrayResult($arrayobject );
						$this->attributes [$i] = $ComAlibabaOceanOpenplatformBizProductCommonModelSKUAttrInfoResult;
					}
    			}
    			    		    		}
	
	private $arrayResult;
	public function setArrayResult($arrayResult) {
		$this->arrayResult = $arrayResult;
				    		    			if (array_key_exists ( "skuId", $this->arrayResult )) {
    			$this->skuId = $arrayResult['skuId'];
    			}
    		    	    			    		    			if (array_key_exists ( "specId", $this->arrayResult )) {
    			$this->specId = $arrayResult['specId'];
    			}
    		    	    			    		    		if (array_key_exists ( "attributes", $this->arrayResult )) {
    		$attributesResult=$arrayResult['attributes'];
    			$this->attributes = new ComAlibabaOceanOpenplatformBizProductCommonModelSKUAttrInfo();
    			$this->attributes->setStdResult ( $attributesResult);
    		}
    		    	    		}
 
   
}
?>